package models

type SysQuestionBank struct {
	Model
	Name                      string `json:"name" gorm:"varchar(100);comment:题库名称"`
	Description               string `json:"description" gorm:"varchar(255);comment:描述"`
	Type                      string `json:"type" gorm:"varchar(10);comment:科目类型"`
	Cover                     string `json:"cover" gorm:"varchar(255);comment:题库封面"`
	Subject                   string `json:"subject" gorm:"varchar(10);comment:科目"`
	SingleChoiceCount         int    `json:"single_choice_count" gorm:"type:int(5);UNSIGNED;default:0;comment:单选总数"`
	MultipleChoiceCount       int    `json:"multiple_choice_count" gorm:"type:int(5);UNSIGNED;default:0;comment:多选总数"`
	JudgmentQuestionCount     int    `json:"judgment_question_count" gorm:"type:int(5);UNSIGNED;default:0;comment:判断题总数"`
	ApplicationQuestionsCount int    `json:"application_questions_count" gorm:"type:int(5);UNSIGNED;default:0;comment:应用题总数"`
	PublicRange               string `json:"public_range" gorm:"type:varchar(10);comment:公开范围"`
	PublishRange              string `json:"publish_range" gorm:"type:varchar(10);comment:发布范围"`
	Status                    int    `json:"status" gorm:"size:1;column:status"`
	Count                     int    `json:"count" gorm:"int(5);default:0;comment:题目总数"`
	ControlBy
	ModelTime
}

func (SysQuestionBank) TableName() string {
	return "sys_exercises"
}
